package com.ruoyi.ncpcs.service.impl;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ncpcs.mapper.NcpcsInterfaceInfoMapper;
import com.ruoyi.ncpcs.domain.NcpcsInterfaceInfo;
import com.ruoyi.ncpcs.service.INcpcsInterfaceInfoService;

import javax.annotation.Resource;

/**
 * interfaceManageService业务层处理
 *
 * @author ruoyi
 * @date 2022-09-25
 */
@Service
@DS("master")
public class NcpcsInterfaceInfoServiceImpl implements INcpcsInterfaceInfoService
{
    @Resource
    private NcpcsInterfaceInfoMapper ncpcsInterfaceInfoMapper;

    /**
     * 查询interfaceManage
     *
     * @param id interfaceManage主键
     * @return interfaceManage
     */
    @Override
    public NcpcsInterfaceInfo selectNcpcsInterfaceInfoById(Long id)
    {
        return ncpcsInterfaceInfoMapper.selectNcpcsInterfaceInfoById(id);
    }

    /**
     * 查询interfaceManage列表
     *
     * @param ncpcsInterfaceInfo interfaceManage
     * @return interfaceManage
     */
    @Override
    public List<NcpcsInterfaceInfo> selectNcpcsInterfaceInfoList(NcpcsInterfaceInfo ncpcsInterfaceInfo)
    {
        return ncpcsInterfaceInfoMapper.selectNcpcsInterfaceInfoList(ncpcsInterfaceInfo);
    }

    /**
     * 新增interfaceManage
     *
     * @param ncpcsInterfaceInfo interfaceManage
     * @return 结果
     */
    @Override
    public int insertNcpcsInterfaceInfo(NcpcsInterfaceInfo ncpcsInterfaceInfo)
    {
        return ncpcsInterfaceInfoMapper.insertNcpcsInterfaceInfo(ncpcsInterfaceInfo);
    }

    /**
     * 修改interfaceManage
     *
     * @param ncpcsInterfaceInfo interfaceManage
     * @return 结果
     */
    @Override
    public int updateNcpcsInterfaceInfo(NcpcsInterfaceInfo ncpcsInterfaceInfo)
    {
        return ncpcsInterfaceInfoMapper.updateNcpcsInterfaceInfo(ncpcsInterfaceInfo);
    }

    /**
     * 批量删除interfaceManage
     *
     * @param ids 需要删除的interfaceManage主键
     * @return 结果
     */
    @Override
    public int deleteNcpcsInterfaceInfoByIds(Long[] ids)
    {
        return ncpcsInterfaceInfoMapper.deleteNcpcsInterfaceInfoByIds(ids);
    }

    /**
     * 删除interfaceManage信息
     *
     * @param id interfaceManage主键
     * @return 结果
     */
    @Override
    public int deleteNcpcsInterfaceInfoById(Long id)
    {
        return ncpcsInterfaceInfoMapper.deleteNcpcsInterfaceInfoById(id);
    }
}
